<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>02-变量</title>
</head>
<body>
<script>
    var name = "jack"  // 定义变量
    console.log(name)
    name = "tom"
    console.log(name)
    console.log(typeof name) // typeof: 打印变量类型->string
    delete name  //删除变量
</script>
<script>
    var username = "rose"
    var age = 18
    var money = 100.1
    var is_man = false
    console.log(username, typeof username) //rose string
    console.log(age,typeof age) //18 'number'
    console.log(money, typeof money)  //100.1 'number'
    console.log(is_man, typeof is_man)  // false 'boolean'
</script>
</body>
</html>